
/**
 * @type {import("jest").Config}
 */
export default {
    prettierPath: null,
    moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
    modulePaths: ['<rootDir>/tests'],
    setupFilesAfterEnv: ['<rootDir>/jest.setup.cjs'],
    transform: {
      '^.+\\.(t|j)s$': [
        '@swc/jest',
        {
          jsc: {
            parser: {
              tsx: true,
              syntax: 'typescript',
            }
          },
        },
      ],
    },
    moduleNameMapper: {
      // '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
      //   '<rootDir>/tests/__mocks__/fileMock.js',
      // '\\.(css|less|scss|sass)$': '<rootDir>/tests/__mocks__/styleMock.js',
    },
  };
